package com.china08.yxyapi.entity.db.res;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 资源和章节目录对应表
 * 
 * @author Json
 *
 */
@Entity
@Table(name = "yxy_res_resource_book_content", catalog = "yxy_res", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "resource_id", "book_content_id" }) })
public class YxyResResourceBookContent extends BaseEntity {

    private static final long serialVersionUID = 2667046272181818246L;

    /**
     * 资源id
     */
    @Column(name = "resource_id", length = 32, nullable = false)
    private String resourceId;

    /**
     * 挂载的目录节点id
     */
    @Column(name = "book_content_id", length = 32, nullable = false)
    private String bookContentId;

    /**
     * 挂载的目录节点名
     */
    @Column(length = 255, nullable = false)
    private String bookContentName;

    /**
     * 挂载的父节点id,逗号隔开，多个父节点
     */
    @Column(length = 255)
    private String bookContentPid;

    /**
     * 挂载的父节点名称。
     */
    @Column(length = 1024)
    private String bookContentPname;

    /**
     * 学科id
     */
    @Column(length = 32, nullable = false)
    private String subjectId;

    /**
     * 学科名称
     */
    @Column(length = 255, nullable = false)
    private String subjectName;

    /**
     * 版本
     */
    @Column(length = 32, nullable = false)
    private String versionId;

    /**
     * 版本
     */
    @Column(length = 255, nullable = false)
    private String versionName;

    /**
     * 学段id, 小学，初中，高中
     */
    @Column(length = 32, nullable = false)
    private String phaseId;

    /**
     * 学段名称
     */
    @Column(length = 255, nullable = false)
    private String phaseName;

    /**
     * 学期id
     */
    @Column(length = 32, nullable = false)
    private String semesterId;

    /**
     * 学期名称，一年级上册，必修，选修
     */
    @Column(length = 255, nullable = false)
    private String semesterName;

    /**
     * 对应的bookid
     */
    @Column(length = 32, nullable = false)
    private String bookId;

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getBookContentId() {
        return bookContentId;
    }

    public void setBookContentId(String bookContentId) {
        this.bookContentId = bookContentId;
    }

    public String getBookContentName() {
        return bookContentName;
    }

    public void setBookContentName(String bookContentName) {
        this.bookContentName = bookContentName;
    }

    public String getBookContentPid() {
        return bookContentPid;
    }

    public void setBookContentPid(String bookContentPid) {
        this.bookContentPid = bookContentPid;
    }

    public String getBookContentPname() {
        return bookContentPname;
    }

    public void setBookContentPname(String bookContentPname) {
        this.bookContentPname = bookContentPname;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getPhaseId() {
        return phaseId;
    }

    public void setPhaseId(String phaseId) {
        this.phaseId = phaseId;
    }

    public String getPhaseName() {
        return phaseName;
    }

    public void setPhaseName(String phaseName) {
        this.phaseName = phaseName;
    }

    public String getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(String semesterId) {
        this.semesterId = semesterId;
    }

    public String getSemesterName() {
        return semesterName;
    }

    public void setSemesterName(String semesterName) {
        this.semesterName = semesterName;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

}
